﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace DTTB.MV2.QUANLYNHANSUTIENLUONG.Models.FormBean.NhanVienModel
{
    public class TamUngForm
    {
        public TamUngForm()
        {
            ListTamUng = new List<TamUngForm>();
            ItemPerPage = Common.CommonVariables.PaggedItemsPerPage;
        }

        public int Id { get; set; }
        public int IdNhanVien { get; set; }
        public string NgayTamUng { get; set; }
        public int ThangTamUng { get; set; }
        public int NamTamUng { get; set; }
        public string SoTien { get; set; }
        public string LyDo { get; set; }
        public string GhiChu { get; set; }
        public int? NguoiTao { get; set; }
        public string NgayTao { get; set; }
        public int? NguoiSua { get; set; }
        public string NgaySua { get; set; }
        public bool IsDelete { get; set; }

        //Extend
        public string SoThe { get; set; }
        public string HoTen { get; set; }
        public string HoTenNguoiTao { get; set; }
        public string HoTenNguoiSua { get; set; }
        public bool IsLock { get; set; }
        public bool IsFinish { get; set; }

        public IList<TamUngForm> ListTamUng { get; set; }
        public SelectList SelectListNhanVien { get; set; }
        public SelectList SelectListNhanVienCoTrongTamUng { get; set; }
        public SelectList SelectListNhanVienKhongCoTrongTamUng { get; set; }

        public string MessageError { get; set; }
        public string MessageSuccess { get; set; }

        public int? SearchByIdPhongBan { get; set; }
        public int? SearchByIdChucVu { get; set; }
        public string SearchByHoTen { get; set; }
        public int PageIndex { get; set; }
        public int TotalItem { get; set; }
        public int TotalPage { get; set; }
        /// <summary>
        /// Số bản ghi trên mỗi trang (Nếu muốn không phân trang thì gán PageSize nhỏ hơn hoặc bằng 0)
        /// </summary>
        public int ItemPerPage { get; set; }
    }
}